package com.demo.facade;

public class Popcorn {

    // 使用饿汉式
    private static Popcorn popcorn = new Popcorn();

    public static Popcorn getPopcorn() {
        return popcorn;
    }

    public void on() {
        System.out.println(" Popcorn ON ");
    }

    public void off() {
        System.out.println(" Popcorn off ");
    }

    public void pop() {
        System.out.println(" Popcorn pop ");
    }

    public void pause() {
        System.out.println(" Popcorn pause ");
    }
}
